//-----------------------------------------------------------------------
// <copyright file="a_UserAccessCategoryService.cs" company="AACECOM">
//     Copyright (c) AACECOM. All rights reserved.
// </copyright>
//-----------------------------------------------------------------------

using System;
using System.Collections;
using ThoiTrang.Entities;
using ThoiTrang.Data;
    
namespace ThoiTrang.Business
{   
	/// <summary>
	/// 
	/// </summary> 
    public class a_UserAccessCategoryService
    {
        #region a_UserAccessCategory

        public static void Createa_UserAccessCategory(a_UserAccessCategory a_UserAccessCategory)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                a_UserAccessCategoryDAO.Createa_UserAccessCategory(a_UserAccessCategory);
            }            
            catch (Exception ex)
            {                
                throw ex;
            }
        }        

        public static void Updatea_UserAccessCategory(a_UserAccessCategory a_UserAccessCategory)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                a_UserAccessCategoryDAO.Updatea_UserAccessCategory(a_UserAccessCategory);
            }           
            catch (Exception ex)
            {
                throw ex;
            }
        }        

        public static void Deletea_UserAccessCategory(int aid)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                a_UserAccessCategoryDAO.Deletea_UserAccessCategory(aid);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }
        
        public static a_UserAccessCategory Geta_UserAccessCategory(int aid)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategory(aid);                
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }                

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList(a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList(orderBy, orderDirection);
            }            
            catch (Exception ex)
            {
               throw ex;
            }
        }        

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList(a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {            
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList(orderBy, orderDirection, page, pageSize, out totalRecords);
            }            
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_uid(int uid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_uid(uid, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_uid(int uid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_uid(uid, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_cid(int cid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_cid(cid, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_cid(int cid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_cid(cid, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_cid_uid(int uid, int cid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_cid_uid(uid, cid, orderBy, orderDirection);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }

        public static a_UserAccessCategoryCollection Geta_UserAccessCategoryList_cid_uid(int uid, int cid, a_UserAccessCategoryColumns orderBy, OrderDirection orderDirection, int page, int pageSize, out int totalRecords)
        {
            try
            {
                a_UserAccessCategoryDAO a_UserAccessCategoryDAO = new a_UserAccessCategoryDAO();
                return a_UserAccessCategoryDAO.Geta_UserAccessCategoryList_cid_uid(uid, cid, orderBy, orderDirection, page, pageSize, out totalRecords);
            }
            catch (Exception ex)
            {
                throw ex;
            }
        }      

        #endregion
    }
}